package chapter04

object Test05_WhileLoop {
  def main(args: Array[String]): Unit = {

    //while
    var a: Int = 10
    while (a >= 1) {
      println("whis is a while loop : " + a)
      a -= 1
    }

    println("###########################")

    //do while
    var b: Int = 0
    do {
      println("whis is a while loop 1: " + b)
      b -= 1
    } while (b > 0)





  }
}
